package com.tbit.uqbike.object.pojo;

import com.tbit.common.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.Size;

/**
 * 字典类型表 sys_dict_type
 *
 * @author jing
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class DictType extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 字典主键
     */
    private Integer dictId;

    /**
     * 字典名称
     */
    @NotBlank(message = "sys_dict_name_not_null")
    @Size(min = 0, max = 100, message = "sys_dict_name_length_max_100")
    private String dictName;

    /**
     * 字典类型
     */
    @NotBlank(message = "sys_dict_type_not_null")
    @Size(min = 0, max = 100, message = "sys_dict_type_length_max_100")
    private String dictType;

    /**
     * 状态（0正常 1停用）
     */
    private String status;

    /**
     * 备注
     */
    private String remark;

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("dictId", getDictId())
                .append("dictName", getDictName())
                .append("dictType", getDictType())
                .append("status", getStatus())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
